package com.ken.commons.utils;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

@Component
public class DateUtils {
    public String formatDate(Date date, String format) {
        return new SimpleDateFormat(format).format(date);
    }
}